package com.ruoyi.merchant.mapper;

import com.ruoyi.merchant.domain.MerchantNotificationSettings;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商家通知设置Mapper
 */
@Mapper
public interface MerchantNotificationSettingsMapper {
    
    /**
     * 根据商家ID获取通知设置
     */
    MerchantNotificationSettings selectByMerchantId(@Param("merchantId") Long merchantId);
    
    /**
     * 插入通知设置
     */
    int insert(MerchantNotificationSettings settings);
    
    /**
     * 更新通知设置
     */
    int update(MerchantNotificationSettings settings);
    
    /**
     * 根据商家ID更新通知设置
     */
    int updateByMerchantId(MerchantNotificationSettings settings);
}